<%-- 
    Document   : CustAccountRegistrationStatus
    Created on : Sep 28, 2011, 12:53:51 PM
    Author     : Belinda
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList, BusinessLogic.Constants"%>
<!DOCTYPE html>
<html>
    <!-- InstanceBegin template="../TransactWeb//Templates/FdSage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <!-- InstanceBeginEditable name="doctitle" -->
        <title>Customer Account Registration Status</title>
        <!-- InstanceEndEditable -->
        <script language="javascript" type="text/javascript" src="../TransactWeb/js/jquery-1.6.4.min.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/fieldsetCollapse.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/tcubmenu.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/accordion.js"></script>
        <script type="text/javascript" src="../TransactWeb/js/scroller.js"></script>
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/tcubaccd.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/gridsys.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/reset1.css" />
        <link rel="stylesheet" type="text/css" href="../TransactWeb/css/cm.css" />
        <link href="../TransactWeb/css/tcube.css" rel="stylesheet" type="text/css" />
        <style>
            a {color:#000;}
        </style>
    </head>
    <body>
        <div class="container_12">
            <!-- Header Nav -->
            <div class="grid_3"><img src="../TransactWeb/img/reservation/foodsglogo.png" width="146" height="178" /></div>
            <div class="grid_9 nav"><table width="600" border="0">
                    <tr>
                        <td width="89"><a href="index">Home</a></td>
                        <td width="104"><a href="CustAccountRegistration">Register</a></td>
                        <td width="125">Contact Us</td>
                        <td width="76">FAQ</td>
                        <td width="172">Login</td>
                    </tr>
                </table>
            </div>

            <!-- Welcome Message -->
            <!--<div class="grid_12 welcome">Welcome User!</div>-->
            <!-- End Welcome Message-->

            <!-- End of Header Nav -->
            <!-- Content -->
            <div class="grid_8 push_3 content">
                <!--Register -->
                <table width="600" border="0" class="form">
                    <tr>
                        <td class="formname">Thank You For Registering With Us!</td>
                    </tr>
                </table>
                <br/>
                <%
                    ArrayList data = (ArrayList) request.getAttribute("data");
                    int result = ((Integer) data.get(0)).intValue();
                    if (result == Constants.STATUS_SUCCESSFUL) {
                %>

                You have successfully created an account in FoodSage.<br/>
                If you're not redirected to Homepage in 10s, please click <a href="http://localhost:8080/portal/public/index">here</a>.

                <%} else {
                %>

                A user with this IC number, Username or Email has already registered with us.<br/>
                Please check the information you typed again!<br/>
                If you're not redirected to Account Registration page in 6s, please click <a href="javascript: history.back()">here</a>.

                <%         }
                %>

                <!--End Register -->
            </div>
            <!-- End Content -->
            <!-- Footer -->
            <div class="grid_12 footer">
                <hr size="3" color="#CC6600" />
                Copyright FoodSage 2011</div>
            <!-- End Footer-->
        </div>
    </body>
</html>
